<HTML><HEAD><TITLE>dvar_replace(+DVar, +NewDom)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">library(fd)</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>dvar_replace(+DVar, +NewDom)</H1>
Change the domain of the domain variable DVar to NewDom without propagating
the changes.


<DL>
<DT><EM>+DVar</EM></DT>
<DD>A domain variable.
</DD>
<DT><EM>+NewDom</EM></DT>
<DD>A finite domain.
</DD>
</DL>
<H2>Description</H2>
   If the size of the domain NewDom is 0, the predicate fails.  If the size
   of the new domain is 1, DVar is given this singleton domain.  Otherwise,
   if the size of the new domain is smaller than the size of the domain
   variable's domain, the domain of DVar is replaced by NewDom, but no
   suspensions are passed to the waking scheduler.

<P>
   This predicate is useful for local consistency checks.

<P>

<H3>Fail Conditions</H3>
   None.


<H3>Resatisfiable</H3>
   No.
<H2>See Also</H2>
<A HREF="../../lib/fd/dvar_attribute-2.html">dvar_attribute / 2</A>, <A HREF="../../lib/fd/NN-2.html">:: / 2</A>, <A HREF="../../lib/fd/HNN-2.html">#:: / 2</A>, <A HREF="../../lib/fd/dvar_update-2.html">dvar_update / 2</A>
</BODY></HTML>
